package com.qnnu.studenttravelsystem.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhongge
 * @since 2025-11-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("student")
public class Student implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 学号
     */
    private String studentNo;

    private String name;

    /**
     * 0-女, 1-男
     */
    private Integer gender;

    private String phone;

    /**
     * 所属班级
     */
    private Long classId;

    /**
     * 家庭省份
     */
    private String province;

    /**
     * 市
     */
    private String city;

    /**
     * 县/区
     */
    private String county;

    /**
     * 详细地址
     */
    private String addressDetail;

    /**
     * 初始密码统一为123456（加密）
     */
    private String password;

    private LocalDateTime createdTime;


}
